﻿@model  ScmRiskAssessViewModel
@{
    Layout = null;
    ViewBag.Title = "整体风险评估台账-编辑";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#pagerForm", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
@using (Html.BeginForm("RiskAssessEditData", "ScmRiskAssess", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogRefresh);", @class = "pageForm required-validate" }))
{
        <div class="pageFormContent sortDrag" layouth="58">
            @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_ID, new { @type = "hidden" })
            @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_Section, new { @type = "hidden" })
            @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_ConstructionID, new { @type = "hidden" })
            @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_ConstructionName, new { @type = "hidden" })
            <table class="tab01 tabNo" width="100%;">
            <tr>
                <td class="td1" style="width:25%;">工程名称：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_ProjectName, new Dictionary<string, object> { { "class", "data-val-required input02" } })
                    @Html.ValidationMessageFor(model => model.TheRiskassessInfo.Ra_ProjectName)
                </td>
            </tr>
            <tr>
                <td class="td1">桩号位置：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_StakeNumb, new { @size = "92", @class = "input02" })
                </td>
            </tr>

            <tr>
                <td class="td1">长度（米）：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_Lenthg, new { @class="input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">风险等级：</td>
                <td>
                    @Html.DropDownListFor(model => model.TheRiskassessInfo.Ra_RiskGrade, ViewBag.list as IEnumerable<SelectListItem>)
                </td>
            </tr>
            <tr>
                <td class="td1">结构形式：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_Structural, new { @size = "92", @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">备注：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheRiskassessInfo.Ra_Remark, new { @size = "92", @class = "input02" })
                </td>
            </tr>
            </table>
        </div>

        <div class="formBar">
            <ul>
                <li>
                    <button type="submit" class="btn btn-sm">保存</button>
                </li>
                <li>
                    <button type="button" class="close btn btn-default btn-sm">取消</button>
                </li>

            </ul>
        </div>

}


